#include "buzzer.h"

#define BUZZER_DELAY 200
void BUZZER_On(void)
{
  HAL_GPIO_WritePin(GPIOC,GPIO_PIN_8,GPIO_PIN_SET);
}

void BUZZER_Off(void)
{
  HAL_GPIO_WritePin(GPIOC,GPIO_PIN_8,GPIO_PIN_RESET);
}
void BUZZER_Period(uint8_t times)
{
  uint8_t i = 0;
  for(i = 0; i < times; i++)
  {
    BUZZER_On();
    HAL_Delay(BUZZER_DELAY);
    BUZZER_Off();
    HAL_Delay(BUZZER_DELAY);
  }
}